<?php

session_start();

require_once ("../../../db.php");


if (!isset($_SESSION['uid']) || ($_SESSION['type'] != 'student')) {
    die('Not logged in as an student user');
}

// this removes a member from the group
$sql = 'DELETE FROM groupparticipants WHERE participantid=?';
$sth = $db->prepare ($sql);
$sth->execute (array ($_POST['memberid']));
?>
